Optimal. Leaf size=203 \[ \frac {46 a^3 \tan (c+d x) \sec ^4(c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {710 a^3 \tan (c+d x) \sec ^3(c+d x)}{693 d \sqrt {a \sec (c+d x)+a}}+\frac {284 a^3 \tan (c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 \tan (c+d x) \sec ^4(c+d x) \sqrt {a \sec (c+d x)+a}}{11 d}-\frac {568 a^2 \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{693 d}+\frac {284 a \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{231 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 203, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3814, 4016, 3803, 3800, 4001, 3792} \[ \frac {2 a^2 \tan (c+d x) \sec ^4(c+d x) \sqrt {a \sec (c+d x)+a}}{11 d}+\frac {46 a^3 \tan (c+d x) \sec ^4(c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {710 a^3 \tan (c+d x) \sec ^3(c+d x)}{693 d \sqrt {a \sec (c+d x)+a}}-\frac {568 a^2 \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{693 d}+\frac {284 a^3 \tan (c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {284 a \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{231 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3792
Rule 3800
Rule 3803
Rule 3814
Rule 4001
Rule 4016
Rubi steps
\begin {align*} \int \sec ^4(c+d x) (a+a \sec (c+d x))^{5/2} \, dx &=\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {1}{11} (2 a) \int \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {19 a}{2}+\frac {23}{2} a \sec (c+d x)\right ) \, dx\\ &=\frac {46 a^3 \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {1}{99} \left (355 a^2\right ) \int \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {710 a^3 \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {46 a^3 \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {1}{231} \left (710 a^2\right ) \int \sec ^3(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {710 a^3 \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {46 a^3 \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {284 a (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{231 d}+\frac {1}{231} (284 a) \int \sec (c+d x) \left (\frac {3 a}{2}-a \sec (c+d x)\right ) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {710 a^3 \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {46 a^3 \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}-\frac {568 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{693 d}+\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {284 a (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{231 d}+\frac {1}{99} \left (142 a^2\right ) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {284 a^3 \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {710 a^3 \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {46 a^3 \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}-\frac {568 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{693 d}+\frac {2 a^2 \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {284 a (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{231 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.21, size = 80, normalized size = 0.39 \[ \frac {2 a^3 \tan (c+d x) \left (63 \sec ^5(c+d x)+224 \sec ^4(c+d x)+355 \sec ^3(c+d x)+426 \sec ^2(c+d x)+568 \sec (c+d x)+1136\right )}{693 d \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 121, normalized size = 0.60 \[ \frac {2 \, {\left (1136 \, a^{2} \cos \left (d x + c\right )^{5} + 568 \, a^{2} \cos \left (d x + c\right )^{4} + 426 \, a^{2} \cos \left (d x + c\right )^{3} + 355 \, a^{2} \cos \left (d x + c\right )^{2} + 224 \, a^{2} \cos \left (d x + c\right ) + 63 \, a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{693 \, {\left (d \cos \left (d x + c\right )^{6} + d \cos \left (d x + c\right )^{5}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 6.22, size = 209, normalized size = 1.03 \[ -\frac {8 \, {\left (693 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (1617 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (3003 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - 25 \, {\left (99 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 4 \, {\left (2 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 11 \, \sqrt {2} a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{693 \, {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{5} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.96, size = 105, normalized size = 0.52 \[ -\frac {2 \left (1136 \left (\cos ^{6}\left (d x +c \right )\right )-568 \left (\cos ^{5}\left (d x +c \right )\right )-142 \left (\cos ^{4}\left (d x +c \right )\right )-71 \left (\cos ^{3}\left (d x +c \right )\right )-131 \left (\cos ^{2}\left (d x +c \right )\right )-161 \cos \left (d x +c \right )-63\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a^{2}}{693 d \cos \left (d x +c \right )^{5} \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 9.32, size = 542, normalized size = 2.67 \[ \frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,64{}\mathrm {i}}{11\,d}+\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,64{}\mathrm {i}}{11\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^5}+\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,16{}\mathrm {i}}{d}+\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,640{}\mathrm {i}}{231\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}-\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,64{}\mathrm {i}}{9\,d}+\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,2176{}\mathrm {i}}{99\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^4}-\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,80{}\mathrm {i}}{7\,d}-\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,12688{}\mathrm {i}}{693\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3}-\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,2272{}\mathrm {i}}{693\,d\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )}-\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,1136{}\mathrm {i}}{693\,d\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________